package com.union.vehicleassistant.bean;

import androidx.annotation.StringRes;

import com.union.vehicleassistant.R;

public enum IBleState {

    /**
     * 无权限
     */
    NO_PERMISSION(R.drawable.ic_bluetooth_state_error, R.string.ble_state_no_permission),
    /**
     * 未连接
     */
    DISCONNECT(R.drawable.ic_bluetooth_state_disconnect, R.string.ble_state_unconnected),
    /**
     * 链接失败
     */
    CONNECT_FAIL(R.drawable.ic_bluetooth_state_disconnect, R.string.ble_state_fail),
    /**
     * 扫描中
     */
    SCANNING(R.drawable.ic_bluetooth_state_scanning, R.string.ble_state_scanning),
    /**
     * 无可用设备
     */
    NO_USABLE_DEVICE(R.drawable.ic_bluetooth_state_disconnect, R.string.ble_state_no_usable),

    /**
     * 连接中
     */
    CONNECTING(R.drawable.ic_bluetooth_state_scanning, R.string.ble_state_connecting),
    /**
     * 已连接
     */
    CONNECTED(R.drawable.ic_bluetooth_state_success, R.string.ble_state_success);

    public int drawableId;
    public @StringRes int descrption;

    IBleState(int drawableId, int descrption) {
        this.drawableId = drawableId;
        this.descrption = descrption;
    }
}
